package com.renli.model.dto;

import com.renli.utils.Date;
import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UpdateDayDto  {

    @NotNull(message = "员工工号不可为空")
    private Long staffId;

    @NotNull(message = "基础工资不可为空")
    private Double basicWage;
    @NotNull(message = "岗位工资不可为空")
    private Double postPay;
    //迟到次数
    @NotNull(message = "迟到次数不可为空")
    @Min(value = 0,message = "迟到次数不可低于0")
    @Max(value = 30,message = "迟到次数不能大于30")
    private Integer dayLate;

    //缺勤天数
    @NotNull(message = "缺勤天数不可为空")
    @Min(value = 0,message = "缺勤天数不能小于0")
    @Max(value = 30,message = "缺勤天数不能大于30")
    private Integer daysLost;

    //加班时长
    @NotNull(message = "加班时长不可为空")
    @Min(value = 0,message = "加班时长不能小于0")
    @Max(value = 150,message = "加班时长过长")
    private Integer workOvertime;
    //奖赏金额
    @NotNull(message = "奖赏金额不可为空")
    @Min(value = 0,message = "奖赏金额不能小于0")
    @Max(value = 500,message = "奖赏金额过大")
    private Double reward;

    //罚款金额
    @NotNull(message = "罚款金额不可为空")
    @Min(value = 0,message = "罚款金额不能小于0")
    @Max(value = 500,message = "罚款金额过大")
    private Double penalty;

    //奖惩原因
    @NotEmpty(message = "处理原因不能为空")
    private String cause;
}
